<!DOCTYPE html>
<html lang="en">

<head>
  @@include('./meta.html',{})
</head>

<body class="app-component">
  @@include('./header.html',{
  "components": "active"
  })
  <div class="component-wrapper">
    <div class="component-navleft">
      @@include('./navleft.html',{
      "tab_form": "active"
      })
    </div><!-- component-navleft -->

    <div class="component-sidebar">
      @@include('./sidebar.html',{
      "tab_form": "active",
      "form_elements": "active",
      "urlPrefix": "."
      })
    </div><!-- component-sidebar -->

      <div class="component-content">
        <div class="component-content-header">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb breadcrumb-style1 mg-b-0">
              <li class="breadcrumb-item"><a href="#">Components</a></li>
              <li class="breadcrumb-item"><a href="#">Forms</a></li>
              <li class="breadcrumb-item active" aria-current="page">Form Elements</li>
            </ol>
          </nav>
          <a href="javascript:;" id="componentOptions" class="text-secondary mg-l-auto d-xl-none"><i data-feather="more-horizontal"></i></a>
        </div><!-- component-content-header -->

        <div class="component-content-body" data-spy="scroll" data-target="#navSection" data-offset="120">
          <div class="content content-components">
            <div class="container">
              <!--sd-->
              <h1 class="td-title">Form Elements</h1>
        <p class="td-lead">Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.</p>

        <hr class="mg-y-40">

        <h4 id="section1" class="mg-b-10">Input Box</h4>
        <p class="mg-b-30">A basic form control with disabled and readonly mode.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="row row-sm">
            <div class="col-sm-6">
              <input type="text" class="form-control" placeholder="Input box">
            </div>
            <div class="col-sm-6 mg-t-10 mg-sm-t-0">
              <input type="text" class="form-control" placeholder="Input box (disabled)" disabled>
            </div>
            <div class="col-sm-6 mg-t-10">
              <textarea class="form-control" rows="2" placeholder="Textarea"></textarea>
            </div>
            <div class="col-sm-6 mg-t-10">
              <textarea class="form-control" rows="2" placeholder="Textarea (disabled)" disabled></textarea>
            </div>
          </div><!-- row -->
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Input box&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Input box (disabled)&quot; disabled&gt;
&lt;textarea class=&quot;form-control&quot; rows=&quot;2&quot; placeholder=&quot;Textarea&quot;&gt;&lt;/textarea&gt;
&lt;textarea class=&quot;form-control&quot; rows=&quot;2&quot; placeholder=&quot;Textarea (disabled)&quot; disabled&gt;&lt;/textarea&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section2" class="mg-b-10">Validation State</h4>
        <p class="mg-b-30">A form control with success, warning and error state.</p>

        <div data-label="Example" class="td-example demo-forms">
          <form id="form1" class="needs-validation was-validated" novalidate>
            <div class="row row-sm mg-b-10">
              <div class="col-sm-6">
                <input type="text" class="form-control" placeholder="Valid state">
                <div class="valid-feedback">Looks good!</div>
              </div>
              <div class="col-sm-6 mg-t-10 mg-sm-t-0">
                <input type="text" class="form-control" placeholder="Invalid state" required>
                <div class="invalid-feedback">This is required</div>
              </div>
              <div class="col-sm-6 mg-t-10">
                <textarea class="form-control" rows="2" placeholder="Valid state"></textarea>
                <div class="valid-feedback">Looks good!</div>
              </div>
              <div class="col-sm-6 mg-t-10">
                <textarea class="form-control" rows="2" placeholder="Invalid state" required></textarea>
                <div class="invalid-feedback">This is required</div>
              </div>
            </div><!-- row -->
          </form>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;form id=&quot;form1&quot; class=&quot;needs-validation was-validated&quot; novalidate&gt;
  &lt;div class=&quot;row row-sm mg-b-10&quot;&gt;
    &lt;div class=&quot;col-sm-6&quot;&gt;
      &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Valid state&quot;&gt;
      &lt;div class=&quot;valid-feedback&quot;&gt;Looks good!&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;col-sm-6 mg-t-10 mg-sm-t-0&quot;&gt;
      &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Invalid state&quot; required&gt;
      &lt;div class=&quot;invalid-feedback&quot;&gt;This is required&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;col-sm-6 mg-t-10&quot;&gt;
      &lt;textarea class=&quot;form-control&quot; rows=&quot;2&quot; placeholder=&quot;Valid state&quot;&gt;&lt;/textarea&gt;
      &lt;div class=&quot;valid-feedback&quot;&gt;Looks good!&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;col-sm-6 mg-t-10&quot;&gt;
      &lt;textarea class=&quot;form-control&quot; rows=&quot;2&quot; placeholder=&quot;Invalid state&quot; required&gt;&lt;/textarea&gt;
      &lt;div class=&quot;invalid-feedback&quot;&gt;This is required&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/form&gt;</code></pre>


        <hr class="mg-t-50 mg-b-40">

        <h4 id="section3" class="mg-b-10">Checkboxes</h4>
        <p class="mg-b-30">For even more customization and cross browser consistency, use our completely custom checkbox element to replace the browser defaults.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="d-flex">
            <div>
              <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" id="customCheck1">
                <label class="custom-control-label" for="customCheck1">Custom checkbox</label>
              </div>
              <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" id="customCheck2" disabled>
                <label class="custom-control-label" for="customCheck2">Custom checkbox (disabled)</label>
              </div>
            </div>
            <div class="mg-sm-l-30">
              <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" id="customCheck3" checked>
                <label class="custom-control-label" for="customCheck3">Custom checkbox (checked)</label>
              </div>
              <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" id="customCheck4" checked disabled>
                <label class="custom-control-label" for="customCheck4">Custom checkbox (checked disabled)</label>
              </div>
            </div>
          </div>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customCheck1&quot;&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customCheck1&quot;&gt;Custom checkbox&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customCheck2&quot; disabled&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customCheck2&quot;&gt;Custom checkbox (disabled)&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customCheck3&quot; checked&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customCheck3&quot;&gt;Custom checkbox (checked)&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customCheck4&quot; checked disabled&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customCheck4&quot;&gt;Custom checkbox (checked disabled)&lt;/label&gt;
&lt;/div&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section4" class="mg-b-10">Radios</h4>
        <p class="mg-b-30">For even more customization and cross browser consistency, use our completely custom radio element to replace the browser defaults.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="d-flex">
            <div>
              <div class="custom-control custom-radio">
                <input type="radio" id="customRadio1" name="customRadio" class="custom-control-input" checked>
                <label class="custom-control-label" for="customRadio1">Custom radio</label>
              </div>
              <div class="custom-control custom-radio">
                <input type="radio" id="customRadio2" name="customRadio" class="custom-control-input">
                <label class="custom-control-label" for="customRadio2">Custom radio</label>
              </div>
            </div>
            <div class="mg-sm-l-30">
              <div class="custom-control custom-radio">
                <input type="radio" id="customRadio3" name="customRadio2" class="custom-control-input" checked disabled>
                <label class="custom-control-label" for="customRadio3">Custom radio (disabled)</label>
              </div>
              <div class="custom-control custom-radio">
                <input type="radio" id="customRadio4" name="customRadio2" class="custom-control-input" disabled>
                <label class="custom-control-label" for="customRadio4">Custom radio (disabled)</label>
              </div>
            </div>
          </div>
        </div>
        <pre><code class="language-html">&lt;div class=&quot;custom-control custom-radio&quot;&gt;
  &lt;input type=&quot;radio&quot; id=&quot;customRadio1&quot; name=&quot;customRadio&quot; class=&quot;custom-control-input&quot; checked&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customRadio1&quot;&gt;Custom radio&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-radio&quot;&gt;
  &lt;input type=&quot;radio&quot; id=&quot;customRadio2&quot; name=&quot;customRadio&quot; class=&quot;custom-control-input&quot;&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customRadio2&quot;&gt;Custom radio&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-radio&quot;&gt;
  &lt;input type=&quot;radio&quot; id=&quot;customRadio3&quot; name=&quot;customRadio2&quot; class=&quot;custom-control-input&quot; checked disabled&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customRadio3&quot;&gt;Custom radio&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-radio&quot;&gt;
  &lt;input type=&quot;radio&quot; id=&quot;customRadio4&quot; name=&quot;customRadio2&quot; class=&quot;custom-control-input&quot; disabled&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customRadio4&quot;&gt;Custom radio&lt;/label&gt;
&lt;/div&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section5" class="mg-b-10">Switches</h4>
        <p class="mg-b-30">A switch has the markup of a custom checkbox but uses the <code>.custom-switch</code> class to render a toggle switch. Switches also support the disabled attribute.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="d-flex">
            <div>
              <div class="custom-control custom-switch">
                <input type="checkbox" class="custom-control-input" id="customSwitch1">
                <label class="custom-control-label" for="customSwitch1">Toggle this switch element</label>
              </div>
              <div class="custom-control custom-switch">
                <input type="checkbox" class="custom-control-input" disabled id="customSwitch2">
                <label class="custom-control-label" for="customSwitch2">Disabled switch element</label>
              </div>
            </div>
            <div class="mg-sm-l-30">
              <div class="custom-control custom-switch">
                <input type="checkbox" class="custom-control-input" id="customSwitch3" checked>
                <label class="custom-control-label" for="customSwitch3">Toggle this switch element</label>
              </div>
              <div class="custom-control custom-switch">
                <input type="checkbox" class="custom-control-input" disabled id="customSwitch4" checked disabled>
                <label class="custom-control-label" for="customSwitch4">Disabled switch element</label>
              </div>
            </div>
          </div>
        </div>
        <pre><code class="language-html">&lt;div class=&quot;custom-control custom-switch&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customSwitch1&quot;&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customSwitch1&quot;&gt;Toggle this switch element&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-switch&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; disabled id=&quot;customSwitch2&quot;&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customSwitch2&quot;&gt;Disabled switch element&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-switch&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customSwitch3&quot; checked&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customSwitch3&quot;&gt;Toggle this switch element&lt;/label&gt;
&lt;/div&gt;

&lt;div class=&quot;custom-control custom-switch&quot;&gt;
  &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; disabled id=&quot;customSwitch4&quot; checked disabled&gt;
  &lt;label class=&quot;custom-control-label&quot; for=&quot;customSwitch4&quot;&gt;Disabled switch element&lt;/label&gt;
&lt;/div&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section6" class="mg-b-10">Select Menu</h4>
        <p class="mg-b-30">Custom select menus need only a custom class, .custom-select to trigger the custom styles.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="wd-md-50p">
            <select class="custom-select">
              <option selected>Open this select menu</option>
              <option value="1">One</option>
              <option value="2">Two</option>
              <option value="3">Three</option>
            </select>
          </div>
        </div>
        <pre><code class="language-html">&lt;select class=&quot;custom-select&quot;&gt;
  &lt;option selected&gt;Open this select menu&lt;/option&gt;
  &lt;option value=&quot;1&quot;&gt;One&lt;/option&gt;
  &lt;option value=&quot;2&quot;&gt;Two&lt;/option&gt;
  &lt;option value=&quot;3&quot;&gt;Three&lt;/option&gt;
&lt;/select&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section7" class="mg-b-10">Range</h4>
        <p class="mg-b-30">Create custom range controls with <code>.custom-range</code>. The track (the background) and thumb (the value) are both styled to appear the same across browsers. </p>

        <div data-label="Example" class="td-example demo-forms">
          <label for="customRange1">Example range</label>
          <input type="range" class="custom-range" id="customRange1">
        </div>
        <pre><code class="language-html">&lt;label for=&quot;customRange1&quot;&gt;Example range&lt;/label&gt;
&lt;input type=&quot;range&quot; class=&quot;custom-range&quot; id=&quot;customRange1&quot;&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section8" class="mg-b-10">File Browser</h4>
        <p class="mg-b-30">The file input is the most gnarly of the bunch and requires additional JavaScript if you’d like to hook them up with functional Choose file… and selected file name text.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="wd-md-50p">
            <div class="custom-file">
              <input type="file" class="custom-file-input" id="customFile">
              <label class="custom-file-label" for="customFile">Choose file</label>
            </div>
          </div>
        </div>
        <pre><code class="language-html">&lt;div class=&quot;custom-file&quot;&gt;
  &lt;input type=&quot;file&quot; class=&quot;custom-file-input&quot; id=&quot;customFile&quot;&gt;
  &lt;label class=&quot;custom-file-label&quot; for=&quot;customFile&quot;&gt;Choose file&lt;/label&gt;
&lt;/div&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section9" class="mg-b-10">Colorpicker</h4>
        <p class="mg-b-30">A simple component to select color in the same way you select color in Adobe Photoshop.</p>

        <div data-label="Example" class="td-example demo-forms">
          <p class="mg-b-10">Basic Functionality</p>
          <input type="text" id="colorpicker">

          <p class="mg-t-30 mg-b-10">You can allow alpha transparency selection. Check out these example.</p>
          <input type="text" id="showAlpha">

          <p class="mg-t-30 mg-b-10">Show pallete only. If you'd like, spectrum can show the palettes you specify, and nothing else.</p>
          <input type="text" id="showPaletteOnly">
        </div>
        <pre><code class="language-html">&lt;p class=&quot;mg-b-10&quot;&gt;Basic Functionality&lt;/p&gt;
&lt;input type=&quot;text&quot; id=&quot;colorpicker&quot;&gt;

&lt;p class=&quot;mg-t-30 mg-b-10&quot;&gt;You can allow alpha transparency selection. Check out these example.&lt;/p&gt;
&lt;input type=&quot;text&quot; id=&quot;showAlpha&quot;&gt;

&lt;p class=&quot;mg-t-30 mg-b-10&quot;&gt;Show pallete only. If you&apos;d like, spectrum can show the palettes you specify, and nothing else.&lt;/p&gt;
&lt;input type=&quot;text&quot; id=&quot;showPaletteOnly&quot;&gt;</code></pre>
 
@@include('./footer.html',{})

            </div>
          </div>
        </div><!-- component-content-body -->

        <div class="component-content-sidebar section-nav">
          <label class="tx-10 tx-medium tx-spacing-1 tx-color-03 tx-uppercase tx-sans mg-b-15">On This Page</label>
          <nav id="navSection" class="nav flex-column">
            <a href="#section1" class="nav-link">Input Box</a>
            <a href="#section2" class="nav-link">Validation State</a>
            <a href="#section3" class="nav-link">Checkboxes</a>
            <a href="#section4" class="nav-link">Radios</a>
            <a href="#section5" class="nav-link">Switches</a>
            <a href="#section6" class="nav-link">Select Menu</a>
            <a href="#section7" class="nav-link">Range</a>
            <a href="#section8" class="nav-link">File Browser</a>
            <a href="#section9" class="nav-link">Colorpicker</a>
          </nav>
        </div><!-- component-content-sidebar -->
      </div><!-- component-content -->

    </div><!-- component-wrapper -->


    @@include('./_script.html',{})

    <script>
      $(function(){
        'use strict'
 

      });
    </script>
  </body>
</html>
